<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <include file="Public/meta" />
</head>
<body>
    <div class="info-center">
        <!--顶部面包屑-->
        <div class="page-header">
            <div class="pull-left">
                <h4>文章列表:</h4>
            </div>
            <a href="{:U('article/readOneArticle',array('type'=>'add'))}"  class="btn btn-primary pull-right margin-top">上传新文章</a>
        </div>
        <h5>（共{$num}条记录）</h5>
        <form action="" method="get">
            <strong>请选择文章分类：</strong>
            <select name="level" id="cat_id">
                <option value="0" >全部</option>
                <foreach name="list" item="vo">
                    <option value="{vo.id}"
                        <eq name="{cat_id}" value="{vo.id}">
                            checked="checked"
                        </eq>
                    >{vo.title}</option>
                </foreach>
            </select>&nbsp;
            <strong>请选择审核状态：</strong>
            开启<input checked="checked" class="xb-icheck" type="radio" name="state" value="1"
            <eq name="{state}" value='1'>
                checked="checked"
            </eq>
            >
            禁止<input checked="checked" class="xb-icheck" type="radio" name="state" value="0"
            <eq name="{state}" value='0'>
                checked="checked"
            </eq>
            >
            <strong>请选择审核状态：</strong>
            <input type="text" name ='title' placeholder="请输入文章标题">
            <input type="submit" value="搜索"/>
        </form>
        <div class="clearfix"></div>
        <div class="table-margin">
            <table class="table table-hover table-header" id="list-table">
                <thead>
                <tr>
                    <td>排序</td>
                    <td>标题</td>
                    <td>来源</td>
                    <td>上传时间</td>
                    <td >审核状态</td>
                    <td class="w50">内容</td>
                    <td class="w10">操作</td>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="vo">
                    <tr>
                        <td>{$vo['order']}</td>
                        <td>{$vo['title']}</td>
                        <td>{$vo['from']}</td>
                        <td>{$vo['add_time']}</td>
                        <td>
                            <if condition="$vo.state eq 1">
                                <font color="blue">成功</font>
                                <else/>
                                <font color="red">失败</font>
                            </if>
                        </td>
                        <td>
                            <textarex>
                                {$vo['content']}
                            </textarex>
                        </td>
                        <td>
                            <a href="{:U('article/readOneArticle',array('type'=>'read','art_id'=>$vo['id']))}"> 查看</a> |
                            <a href="{:U('article/readOneArticle',array('type'=>'edit','art_id'=>$vo['id']))}"> 编辑</a> |
                            <a href="javascript:if(confirm('确定删除？')) location ='{:U('article/deleteOneArticle',array('art_id'=>$vo['id']))}'">删除</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="pageers">
                <ul>
                    {$show}
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="__ADMIN_JS__/common.js"></script>







</body>
</html>